package com.itheima.springboottilasmanager.util;

public class ApplicationContext {
    private static ThreadLocal<Integer> threadLocal = new ThreadLocal<>();
    public static Integer getEmpId() {
      return  threadLocal.get();
    }
    public static void setEmpId(Integer id) {
      threadLocal.set(id);
    }
    public static void clear() {
      threadLocal.remove();
    }
}
